﻿using System;
using System.ServiceModel;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Logging;
using SoapCore;
using Volo.Abp;
using webservice;

namespace Bridge.WmsService.Host
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddApplication<WmsServiceHostModule>();
            //注入WebService
            //services.TryAddSingleton<IOrderWebService, OrderWebService>();
            //services.AddSoapCore();
        }

        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
        {
           app.InitializeApplication();
         
            //app.UseSoapEndpoint<IOrderWebService>("/OrderWebService.asmx",new SoapEncoderOptions(), SoapSerializer.XmlSerializer);
        }
    }
}
